package cn.yunhe.entity;

import java.io.Serializable;
import java.sql.Date;

/**
 * Created by Administrator on 2018/5/22.
 */
public class Paper implements Serializable {
    private int paper_id;   //试卷id
    private Date creat_time;    //创建时间
    private String content;     //内容。题目
    private String paper_name;  //试卷名称
    private Ptype ptype;        //试卷类型
    private Teacher teacher;    //老师
    private String struc;       //类型分值
    private int pass;           //及格线
    private int full;           //满分
    private String dura;        //时长
    private Class aClass;       //班级
    private String p_key;       //密钥
    private int online_state;   //上线状态

    public Paper() {
        super();
    }

    public Paper(Class aClass, String content, Date creat_time, String dura, int full, int online_state, String p_key, int paper_id, String paper_name, int pass, Ptype ptype, String struc, Teacher teacher) {
        this.aClass = aClass;
        this.content = content;
        this.creat_time = creat_time;
        this.dura = dura;
        this.full = full;
        this.online_state = online_state;
        this.p_key = p_key;
        this.paper_id = paper_id;
        this.paper_name = paper_name;
        this.pass = pass;
        this.ptype = ptype;
        this.struc = struc;
        this.teacher = teacher;
    }

    public Paper(int paper_id, Date creat_time, String content, String paper_name, Ptype ptype, Teacher teacher, String struc, int pass, int full, String dura, Class aClass, String p_key) {
        this.paper_id = paper_id;
        this.creat_time = creat_time;
        this.content = content;
        this.paper_name = paper_name;
        this.ptype = ptype;
        this.teacher = teacher;
        this.struc = struc;
        this.pass = pass;
        this.full = full;
        this.dura = dura;
        this.aClass = aClass;
        this.p_key = p_key;
    }

    public int getPaper_id() {
        return paper_id;
    }

    public void setPaper_id(int paper_id) {
        this.paper_id = paper_id;
    }

    public Date getCreat_time() {
        return creat_time;
    }

    public void setCreat_time(Date creat_time) {
        this.creat_time = creat_time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPaper_name() {
        return paper_name;
    }

    public void setPaper_name(String paper_name) {
        this.paper_name = paper_name;
    }

    public Ptype getPtype() {
        return ptype;
    }

    public void setPtype(Ptype ptype) {
        this.ptype = ptype;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public String getStruc() {
        return struc;
    }

    public void setStruc(String struc) {
        this.struc = struc;
    }

    public int getPass() {
        return pass;
    }

    public void setPass(int pass) {
        this.pass = pass;
    }

    public int getFull() {
        return full;
    }

    public void setFull(int full) {
        this.full = full;
    }

    public String getDura() {
        return dura;
    }

    public void setDura(String dura) {
        this.dura = dura;
    }

    public Class getaClass() {
        return aClass;
    }

    public void setaClass(Class aClass) {
        this.aClass = aClass;
    }

    public String getP_key() {
        return p_key;
    }

    public void setP_key(String p_key) {
        this.p_key = p_key;
    }

    public int getOnline_state() {
        return online_state;
    }

    public void setOnline_state(int online_state) {
        this.online_state = online_state;
    }

    @Override
    public String toString() {
        return "Paper{" +
                "aClass=" + aClass +
                ", paper_id=" + paper_id +
                ", creat_time=" + creat_time +
                ", content='" + content + '\'' +
                ", paper_name='" + paper_name + '\'' +
                ", ptype=" + ptype +
                ", teacher=" + teacher +
                ", struc='" + struc + '\'' +
                ", pass=" + pass +
                ", full=" + full +
                ", dura='" + dura + '\'' +
                ", p_key='" + p_key + '\'' +
                ", online_state=" + online_state +
                '}';
    }
}
